<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
	function showOrderDetail(id,orderid)
	{
		$.post("/orderlist/ajaxbutton", {"op": "showamazonsell","id":id},
		  function(data){
			  if(data.length==0)
			  {
				alert("没有数据！");
				return;  
				}else{
					var tmp='';				
					for(var i=0;i<data.length;i++)
					{
						tmp+='<tr>'
						tmp+="<td>"+data[i].productid+"</td><td>"+data[i].productname+"</td><td>"+data[i].ordernum+"</td><td>"+data[i].sellprice+"</td><td>"+data[i].shipprice+"</td><td>"+data[i].amount+"</td>";
						tmp+="</tr>";
						
					}
					 $("#showmabangid").html(tmp);
					 $("#sshowmabangorder").html(orderid);
					 $('#showmabangorder').modal('show');
				}
			 
		   },"json");
	}
</script>
<title>亚马逊物流已收到库存报告</title>
<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent">
<div class="pageheader notab">
  <h1 class="pagetitle">亚马逊入库报告</h1>
  <span class="pagedesc">库息计算的基础数据</span>
 <div class="menulist">
    <ul class="profile_summary">
       <li class="current"> <a href="/order/fulflllment?goods_id=99"><span>待修正SKU</span></a></li>
      
      
        </ul>
  </div>
  
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
<div id="basicform" class="subcontent">
   <!--搜索栏-->
          <div>
          
   	
         <div style="clear: both"></div>
         <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
   </div>
      
    <form class="stdform stdform2" method="get" id="search" action="/order/fulflllment">
    <input type='hidden' name='if_csv' id='if_csv'>
    <input type='hidden' name='csvlist' id='csvlist'>
    <input type='hidden' name='orderby' id='orderby'>

      <div class="tableoptions"> 
        <select name="shopid" id="shopid"  class="selection select2_group" style="width:150px;" >
        <option value="" >店铺</option>
        {{foreach from=$d_shop item=li key=key}}
              <option value="{{$li.id}}" {{if $shopid==$li.id}} selected{{/if}}>{{$li.name}}</option>
        {{/foreach}}
        </select>
      
      
               
       入库时间：
    
       <input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
       关键词: <input type="text" name="kw" id="kw" class="width200" value="{{$goodsku}}" placeholder="SKU，" />
     
                           
&nbsp;
        <button class="btn btn-primary" id="searchbtn">Search</button>
     
      </div>
      
    
    </form>
    <!--搜索栏结束-->
    <div class="x_content" style="overflow-x:auto;">
<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
<thead>
  <tr class="lbbt">
    <td  bgcolor="#FEFFF1">SKU</td>
    <td  bgcolor="#FEFFF1">店铺</td>
    <td  bgcolor="#FEFFF1">FNSKU</td>
    <td  bgcolor="#FEFFF1">入库数</td>
    <td  bgcolor="#FEFFF1">入库批次</td>
    <td  bgcolor="#FEFFF1">亚马逊仓库</td>
    <td  bgcolor="#FEFFF1">入库时间</td>

    
  </tr>
</thead>
<tbody >

{{foreach from=$orderlist item=li key=key}}
  <tr style="cursor:pointer">
    <td valign="middle" bgcolor="#FFFFFF" style="position:relative;">
    
    {{if $li.goods_id ==0}}
   <font color="red">{{$li.sku}}</font>
    <br> <span style="cursor:pointer" onclick="listTable.edit(this, 'changfulflllmentgoodsno','{{$li.id}}','{{$li.sku}}')"><font color="#FF0000">修正销售SKU</font></span>
    {{else}}
   <a href="/product/productlist?other={{$li.sku}}" target="_blank">  <font color="6666FF">{{$li.sku}}</font>  </a>
    {{/if}}
   
    
     </td>
     <td valign="middle" bgcolor="#FFFFFF"><span style="margin-left:10px;"> {{$li.shopname}} </span></td>
    
    <td  bgcolor="#FFFFFF" style="position:relative;">
  {{$li.fnsku}}
   </td>
    <td valign="middle" bgcolor="#FFFFFF"><span style="position:relative;"> {{$li.quantity}} </span></td>
    <td valign="middle" bgcolor="#FFFFFF">{{$li.shipment_id}}</td>
     <td valign="middle" bgcolor="#FFFFFF">{{$li.fulfillment_center_id}}</td>
        <td valign="middle" bgcolor="#FFFFFF">{{$li.fulflllment_data}}</td>
      
   
  </tr>
   
{{/foreach}}
</tbody>

</table>
</div>
  <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
</div>
</div>

  
  
</body>
</html>